<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>

<!DOCTYPE html>
<html class='no-js' lang='cn'>
  <jsp:include page="/head.jsp"/>
  <link rel="stylesheet" href="${ctx }/editor/lib/codemirror.css">
  <link rel="stylesheet" href="${ctx }/editor/addon/dialog/dialog.css">
  <link rel="stylesheet" href="${ctx }/editor/theme/monokai.css">
  
  <style type="text/css">
	.CodeMirror {
		border-top: 1px solid #eee;
		border-bottom: 1px solid #eee;
		font-size: 18px;
		height: auto; 
	}
	.CodeMirror-scroll { max-height: 500px; min-height: 100px;}
  </style>
  <body class='main page'>
  <jsp:include page="/top.jsp"/>
  
  <div id='wrapper'>
      <section id='tools'>
        <ul class='breadcrumb' id='breadcrumb'>
          <li class='title'>Job任务</li>
          <li class='active'>统计</li>
        </ul>
      </section><!-- Sidebar -->
  <jsp:include page="/sidebar.jsp"/>
    	
     <!-- Content -->
     <div id='content'>
     	<form id="job_form">
            <fieldset>
               <legend>HTTP任务统计</legend>
               <div class='form-group row'>
	              <div class='col-lg-3'>
	               <label class='control-label'>总抓取数:</label>
                   ${httpArray[0]}
	              </div>
	              
	              <div class='col-lg-3'>
	               <label class='control-label'>总成功数:</label>
	               ${httpArray[1] }
	              </div>
	              <div class='col-lg-3'>
	               <label class='control-label'>总失败数:</label>
	               ${httpArray[2] } 
	              </div>
	              <div class='col-lg-3'>
	               <label class='control-label'>总平均速率(每分钟):</label>
	               ${httpRunSpeed}
	              </div>
	              <div class='col-lg-3'>
	               <label class='control-label'>总待爬任务数:</label>
	               ${httpArray[3]}
	              </div>
               </div>
             </fieldset>
             
             <fieldset>
               <legend>FTP任务统计</legend>
               <div class='form-group row'>
	              <div class='col-lg-3'>
	               <label class='control-label'>总抓取数:</label>
                   ${ftpArray[0]}
	              </div>
	              
	              <div class='col-lg-3'>
	               <label class='control-label'>总成功数:</label>
	               ${ftpArray[1] }
	              </div>
	              <div class='col-lg-3'>
	               <label class='control-label'>总失败数:</label>
	               ${ftpArray[2] } 
	              </div>
	              <div class='col-lg-3'>
	               <label class='control-label'>总平均速率(每分钟):</label>
	               ${ftpArray[3]}
	              </div>
	              <div class='col-lg-3'>
	               <label class='control-label'>总待爬任务数:</label>
	               ${ftpArray[3]}
	              </div>
               </div>
             </fieldset>
          </form>
     </div>
     
  </div>

<jsp:include page="/foot.jsp"/>
    
    
    <!--DEVEL-->
	<script src="${ctx }/editor/lib/codemirror.js"></script>
	<script src="${ctx }/editor/addon/dialog/dialog.js"></script>
	<script src="${ctx }/editor/addon/search/searchcursor.js"></script>
	<script src="${ctx }/editor/mode/clike/clike.js"></script>
	<script src="${ctx }/editor/addon/edit/matchbrackets.js"></script>
	<script src="${ctx }/editor/keymap/vim.js"></script>
	<script src="${ctx }/editor/addon/display/fullscreen.js"></script>
	<script src="${ctx }/editor/mode/python/python.js"></script>
	<script src="${ctx }/editor/mode/javascript/javascript.js"></script>
	
	<script src="${ctx }/js/beautify.js"></script>
	
	<script src="${ctx }/js/config_setting.js"></script>
	<!-- 任务Job JS配置 -->
	<script src="${ctx }/js/job/job_input_config.js"></script>
	<script src="${ctx }/js/job/job_output_config.js"></script>
	<script>
		var parse = CodeMirror.fromTextArea(document.getElementById("parse"), {
			lineNumbers : true,
			mode : "python",
			matchBrackets : true,
			theme : "monokai",
			readOnly: true,
		});

		
		var input = CodeMirror.fromTextArea(document.getElementById("input"), {
			lineNumbers : true,
			mode : "javascript",
			matchBrackets : true,
			theme : "monokai",
			readOnly: true,
		});
		
		var output = CodeMirror.fromTextArea(document.getElementById("output"), {
			lineNumbers : true,
			mode : "javascript",
			matchBrackets : true,
			theme : "monokai",
			readOnly: true,
		});
		
	</script>
  </body>
</html>
